﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HotelManagement.Class;
using System.Web.Security;

namespace HotelManagement.UserManagementModule
{
    public partial class LoginSuccess : System.Web.UI.Page
    {       
        protected void Page_Load(object sender, EventArgs e)
        {

            
                Label4.Text = "";
                UserAccount us = (UserAccount)Session["object"]; // already-authenticated user
                Label3.Text = us.FirstName + " " + us.LastName;
                Label2.Text = "STF";

                if (us.Role == "Admin") //admin
                {
                    Label2.Text = us.Role; //Admin
                    Label4.Text = "You're in charge of Admin Position of Delonix Regia Hotel. As an Admin role, you "
                    + "can access all modules described in left navigation panel.<br/> <br/>Each module has its "
                    + "very own unique functions to handle Guest's information, Booking information, Room's information, "
                    + "Invoice information, Staff's information and User's Log-in creation.<br/><br/>You can find it useful "
                    + "by navigating through the entire system. Hope you find this system user-friendly and convenient "
                    + "application to be used. <br/><br/>Thank you for browsing this system. Have a nice day! :)";
                }

                else if (us.Role == "Receptionist") //receptionist
                {
                    Label4.Text = "You're in charge of Receptionist Position of Delonix Regia Hotel. As a Receptionist role, you "
                     + "can access all modules described in left navigation panel EXCEPT Housekeeping and Staff Management Module plus "
                     + "User Management Module.<br/> <br/>Each module has its "
                     + "very own unique functions to handle Guest's information, Booking information, Room's information and "
                     + "Invoice information.<br/><br/>You can find it useful "
                     + "by navigating through the entire system. Hope you find this system user-friendly and convenient "
                     + "application to be used. <br/><br/>Thank you for browsing this system. Have a nice day! :)";
                }

                else
                { //Management Level User
                    Label4.Text = "You're in charge of Management Level Position of Delonix Regia Hotel. As a Management Level User role, you "
                   + "can access all modules described in left navigation panel EXCEPT User Management Module. <br/><br/>Each module has its "
                   + "very own unique functions to handle Guest's information, Booking information, Room's information, "
                   + "Invoice information, Staff's information.<br/><br/>You can find it useful "
                   + "by navigating through the entire system. Hope you find this system user-friendly and convenient "
                   + "application to be used. <br/><br/>Thank you for browsing this system. Have a nice day! :)";
                }
            }
        

       
    }
}